Fix deadlock in XendDomainInfo when a domain is cleaned up. We are renaming
authoremellor@ewan <emellor@ewan>
Wed, 12 Oct 2005 09:11:35 +0000 (10:11 +0100)
committeremellor@ewan <emellor@ewan>
Wed, 12 Oct 2005 09:11:35 +0000 (10:11 +0100)
commite2c103e4851e41622adfe762ab34f7518f8c371e
tree879dd50a1a15f377f48215057fdd9d6e6efff66e
parent9887530801ed4feddca24ddbe0e38b3fc5af2f2c
Fix deadlock in XendDomainInfo when a domain is cleaned up.  We are renaming
the domain, to make it clear that it is a zombie, but this renaming cannot
check the uniqueness of the new name, because this causes a deadlock with
XendDomain.  Instead, we allow the name to be non-unique for the case of
zombie domains.

Change the locking in waitForShutdown and state_set to be robust in the face of
exceptions.

Rename the STATE_VM_ constants to STATE_DOM_.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomain.py
tools/python/xen/xend/XendDomainInfo.py